Skip to content

Remove unused _pow10_label helper from pyplot axes - #368

Open
aymuos15 wants to merge 1 commit into
reflex-dev:mainfrom
aymuos15:worktree-dead-code-python
Open

Remove unused _pow10_label helper from pyplot axes#368
aymuos15 wants to merge 1 commit into
reflex-dev:mainfrom
aymuos15:worktree-dead-code-python

Conversation

@aymuos15

@aymuos15 aymuos15 commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

_pow10_label in python/xy/pyplot/_axes.py was a one-line wrapper over _pow_label(value, 10.0) with no call sites anywhere in python/, tests/, scripts/, js/, or docs/.

Axes._apply_tickers already calls _pow_label directly with the base pulled from the tick spec (_pow_label(value, float(spec.get("base", 10.0)))), so the hardcoded-base wrapper had been superseded.

_pow10_label was a one-line wrapper over _pow_label(value, 10.0) with no
call sites; log-decade labelling goes through _pow_label directly with the
base pulled from the tick spec.
@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Removed the module-level _pow10_label base-10 wrapper from python/xy/pyplot/_axes.py, leaving the generic _pow_label(value, base) implementation.

Changes

Axes label helper cleanup

Layer / File(s) Summary
Remove base-10 label wrapper
python/xy/pyplot/_axes.py
Deletes _pow10_label, leaving callers to use the generic _pow_label implementation.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and concisely describes the main change: removing the unused _pow10_label helper from pyplot axes.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@codspeed-hq

codspeed-hq Bot commented Jul 28, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 103 untouched benchmarks
⏩ 2 skipped benchmarks1


Comparing aymuos15:worktree-dead-code-python (02035fc) with main (2d66c51)

Open in CodSpeed

Footnotes

  1. 2 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@aymuos15

Copy link
Copy Markdown
Contributor Author

Seems to be another flaky case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant